package service

import (
	"context"
	"github.com/aphasia51/website/internal/domain"
	"github.com/aphasia51/website/internal/repository"
)

type SafetyEducationService struct {
	repo *repository.SafetyEducationRepository
}

func NewSafetyEducationService(repo *repository.SafetyEducationRepository) *SafetyEducationService {
	return &SafetyEducationService{
		repo: repo,
	}
}

func (svc *SafetyEducationService) Query(ctx context.Context, a domain.SafetyEducation) ([]domain.SafetyEducation, error) {
	return svc.repo.Query(ctx, a)
}
